import { TypeOrmModuleOptions } from '@nestjs/typeorm';

// https://typeorm.nodejs.cn/data-source-options#mysql--mariadb-data-source-options
export const options: TypeOrmModuleOptions = {
  type: 'mysql',
  // 连接地址
  // host: 'localhost',
  host: '8.133.202.105',
  port: 3306,
  username: 'root',
  password: 'a12bCd3_W45pUq6',
  database: 'node_server',
  // 根据实体类自动创建数据库表
  synchronize: true,
};
